package net.helpfulwebservices.cogitologopedia.ws;


/*
 * 
 * Questa classe rappresenta la struttura dei dati
 * che restituisce il web services
 * 
 */
public class wsResponse {

	

		private int id_user;
		private String account;
		private String nome;
		private String email;
		private int ticket;
		private int check;
		
		public wsResponse(int id_user, String account, String nome, String email, int ticket, int check){
			this.setAccount(account);
			this.setCheck(check);
			this.setEmail(email);
			this.setId_user(id_user);
			this.setNome(nome);
			this.setTicket(ticket);
		}
		
		public wsResponse(){
		}

		
		/**
		 * @return the id_user
		 */
		public int getId_user() {
			return id_user;
		}



		/**
		 * @param id_user the id_user to set
		 */
		public void setId_user(int id_user) {
			this.id_user = id_user;
		}



		/**
		 * @return the account
		 */
		public String getAccount() {
			return account;
		}



		/**
		 * @param account the account to set
		 */
		public void setAccount(String account) {
			this.account = account;
		}



		/**
		 * @return the nome
		 */
		public String getNome() {
			return nome;
		}



		/**
		 * @param nome the nome to set
		 */
		public void setNome(String nome) {
			this.nome = nome;
		}



		/**
		 * @return the email
		 */
		public String getEmail() {
			return email;
		}



		/**
		 * @param email the email to set
		 */
		public void setEmail(String email) {
			this.email = email;
		}



		/**
		 * @return the ticket
		 */
		public int getTicket() {
			return ticket;
		}



		/**
		 * @param ticket the ticket to set
		 */
		public void setTicket(int ticket) {
			this.ticket = ticket;
		}



		/**
		 * @return the check
		 */
		public int getCheck() {
			return check;
		}



		/**
		 * @param check the check to set
		 */
		public void setCheck(int check) {
			this.check = check;
		}



		@Override
		public String toString() {
			return "[id_user] => " + String.valueOf(this.getId_user()) + "\n"+
			        "[account] => " + this.getAccount() + "\n"+
					"[nome] => " + this.getNome() + "\n" +
			        "[email] => " + this.getEmail() + "\n" + 
					"[ticket] => " + String.valueOf(this.getTicket()) + "\n" + 
			        "[check] => " +  String.valueOf(this.getCheck()) + "\n";
		}

		
}
